Skip to main content

RectanglePropertyWidth

Type​

operator

Summary​

The width of a rectangle value.

Syntax​

the width of <mRect>

Description​

The width of the rectangle.

note

Setting the width of a rectangle will resize it without moving the left edge, expanding or contracting from the right.

Parameters​

NameTypeDescription

mRect

An expression which evaluates to a rectangle.

Examples​

variable tRect
put rectangle [50,100,150,200] into tRect

// Store the width of the rectangle in a variable
variable tWidth
put the width of tRect into tWidth

// Increase the width of the rectangle
set the width of tRect to (tWidth + 10)
Thank you for your feedback!

Was this page helpful?